import { createRouter, createWebHashHistory } from "vue-router";
import autoRouter from "@/router/auto";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: "/", redirect: "/Home" },
    ...autoRouter,
    {
      name: "Home",
      path: "/Home",
      component: () => import("@/views/index.vue"),
    },
  

  ],
});
// 在路由配置中或全局前置守卫里

console.error(router, "路由列表");
export default router;
